package map.android.baidu.carpool.data.impl;

import android.content.Context;
import map.android.baidu.carpool.WebConfig;
import map.android.baidu.carpool.data.CarpoolBaseData;
import map.android.baidu.carpool.response.OrderDetailResponse;
import map.android.baidu.carpool.setting.UserInfoSetting;

import java.util.HashMap;
import java.util.Map;

import com.baidu.components.api.extra.APIProxy;

/**
 * Created by zhangtongyu on 15/3/23.
 * main模块订单详情接口 request
 */
public class OrderDetailData extends CarpoolBaseData<OrderDetailResponse>{

    private String orderId; //订单号

    public OrderDetailData(Context context) {
        super(context);
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    @Override
    protected String getUrl() {
        return WebConfig.getUrl(WebConfig.URL_ID_ORDER_DETAIL);
    }

    @Override
    protected Map<String, String> getParams() {
        Map<String , String> params = new HashMap<String, String>();
        params.put("orderId" , orderId);
        params.put("bduss", UserInfoSetting.getBduss());
        return params;
    }
}
